package com.ypd.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import com.ypd.common.annotation.Excel;
import com.ypd.common.core.domain.BaseEntity;

/**
 * 邮箱对象 tb_post_box
 * 
 * @author lin
 * @date 2025-02-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PostBox extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邮件唯一标识 */
    private Long id;

    /** 接收者ID */
    @Excel(name = "接收者ID")
    private Long recipientId;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long senderId;

    /** 发送者姓名 */
    @Excel(name = "发送者姓名")
    private String senderName;

    /** 邮件内容 */
    @Excel(name = "邮件内容")
    private String content;

    /** 邮件状态 */
    @Excel(name = "邮件状态")
    private boolean status;

    /** 邮件发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")  // 增加时分秒
    @Excel(name = "邮件发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;



}
